/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package distancias;
import puntos.*;

/**
 *
 * @author 66880717
 */
public class DistanciaEuclidea implements Distancia{

    
    @Override
    public float calcular(Punto p1, Punto p2) {
    
    return  (float) Math.sqrt (Math.pow(p1.getX1()-p2.getX2(),2)+ Math.pow (p1.getX2()-p2.getX1(),2));
    }

    
}
